package fr.imag.ufrima.ctte.gui.views;

import java.awt.BorderLayout;

import javax.swing.JPanel;

import fr.imag.ufrima.ctte.ImagCTTE;

public class MapSubView extends SubView {
	/**
	 * Constructor
	 */
	public MapSubView(ImagCTTE imagCTTE){
		super(imagCTTE, "Map View");
		InitComponents();
	}
	/**
	 * Initialize componenets
	 */
	protected void InitComponents(){
		map = new javax.swing.JPanel();
		zooming = new javax.swing.JSlider();
		
        map.setBackground(java.awt.Color.WHITE);
        
        zooming.setPaintTicks(true);
        zooming.setPaintLabels(true);        
        zooming.setMajorTickSpacing(50);
        zooming.setMinorTickSpacing(20);
        
        zooming.setMaximum(200);
        zooming.setMinimum(0);
        zooming.setValue(100);
        
        
        
        
        this.setLayout(new BorderLayout());
        this.add(map, BorderLayout.CENTER);
        this.add(zooming, BorderLayout.SOUTH);
	}
	/**
	 * Components
	 */
	private javax.swing.JPanel map;
    private javax.swing.JSlider zooming;
}
